using GameFramework;
using GameFramework.Event;

namespace StarForce
{
    public class GameStartEventArgs : GameEventArgs
    {
        /// <summary>
        /// 游戏开始事件编号
        /// </summary>
        public static readonly int EventId = typeof(GameStartEventArgs).GetHashCode();

        /// <summary>
        /// 游戏开始事件编号。
        /// </summary>
        public override int Id
        {
            get
            {
                return EventId;
            }
        }
        
        private GameMode m_GameMode;

        public GameMode GameMode
        {
            get { return m_GameMode; }
            set { m_GameMode = value; }
        }

        public GameStartEventArgs Fill(GameMode gameMode)
        {
            m_GameMode = gameMode;
            return this;
        }

        public override void Clear()
        {
            m_GameMode = GameMode.Unknow;
        }
    }
}